package com.example.xugulink.service.impl;

import com.example.xugulink.dao.mybatisplus.XuGuMapper;
import com.example.xugulink.model.XuGu;
import com.example.xugulink.service.IXuGuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description: 徐顾服务impl
 * @author YoungYang
 * @version 1.0
 * @date 2022/09/19 18:01:48
 */
@Service
@Slf4j
public class XuGuServiceImpl implements IXuGuService {

  @Resource XuGuMapper xuGuMapper;

  @Override
  public Object getXuGuData() {
    return xuGuMapper.selectList(null);
  }

  @Override
  public Object updateXuGuData(XuGu xuGu) {
    return xuGuMapper.updateById(xuGu);
  }

  @Override
  public Object insertXuGuData(XuGu xuGu) {
    return xuGuMapper.insert(xuGu);
  }


}
